<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>用户新增</title>
    <link rel="stylesheet" type="text/css" href="../../../base/plugins/layui/css/layui.css">
    <link rel="stylesheet" href="../../../base/css/global.css">
    <script type="application/javascript" src="../../../base/plugins/layui/layui.js"></script>
    <script src="../../../base/js/jquery-3.3.1.min.js"></script>
    <script src="../../../base/js/global.js"></script>
    <script src="../../../base/js/requestUtil.js"></script>
    <script src="../../../base/js/baseUtil.js"></script>
    <script src="js/userEdit.js"></script>
    <script src="../../../base/js/uploadPreview.js"></script>
</head>
<body>


<form class="layui-form site-title " id="formSubmit">
    <fieldset class="layui-elem-field layui-field-title">
        <legend>新增用户信息</legend>
        <div class="layui-form-item">
            <label class="layui-form-label">头像</label>
            <div class="layui-input-block" id="imgGroup">
                    <img id="imgPreview" class="portrait_img" src="../../../image/tx.png">
                <input class="layui-input" placeholder="请选择头像" name="baseModel.tempMFile" type="file"
                       id="tempFile">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">*账号</label>
            <div class="layui-input-block">
                <input class="layui-input" name="user.account" placeholder="请输入账号" type="text" id="account_user_submit">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">*姓名</label>
            <div class="layui-input-block">
                <input class="layui-input" name="user.name" placeholder="请输入姓名" type="text" id="name_user_submit">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">手机</label>
            <div class="layui-input-block">
                <input class="layui-input" name="user.phone" id="phone_user_submit" placeholder="请输入手机号码" type="text">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">性别</label>
            <div class="layui-input-block" id="sex_user_group">
                <input type="radio" name="user.sex" checked value="0" title="保密">
                <input name="user.sex" value="1" type="radio" title="男">
                <input name="user.sex" value="2" type="radio" title="女">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">出生日期</label>
            <div class="layui-input-block">
                <input class="layui-input" name="user.birthday" placeholder="请选择出生日期" type="text" id="birthday_user_submit" lay-key="1">
            </div>
        </div>
        <div class="layui-form-item" >
            <label class="layui-form-label">所属角色</label>
            <div class="layui-input-block" id="roleGroup">
                <input type="checkbox" name="" title="ee" >
                <input type="checkbox" name="" title="只读角色" >
                <input type="checkbox" name="" title="张三专用" >
                <input type="checkbox" name="" title="操作日志" >
                </select>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">备注</label>
            <div class="layui-input-block">
                <textarea class="layui-textarea" id="memo_user_submit" name="user.memo" placeholder="请输入备注"></textarea>
            </div>
        </div>

        <div class="layui-form-item">
            <div class="layui-input-block">
                <button class="layui-btn" type="button" id="btnSubmit">提交</button>
                <button class="layui-btn layui-btn-primary" type="reset" id="btnReset">重置</button>
                <button class="layui-btn  layui-btn-danger btn_close" type="button" id="btnClose">关闭</button>
            </div>
        </div>
    </fieldset>
</form>

</body>
<script>
    layui.use(["form", "laydate"], function () {
        var laydate = layui.laydate;

        //执行一个laydate实例
        laydate.render({
            elem: '#birthday_user_submit' //指定元素
        });
    });
</script>
</html>